package lin.an.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import lin.an.food.entity.Food;
import lin.an.food.param.FoodPageParam;
import lin.an.user.Param.*;
import lin.an.user.entity.User;

import java.util.List;

/**
 * @author zhoulinq
 * @date 2025/3/10
 */
public interface UserService extends IService<User> {
    void add(UserAddParam userAddParam);

    void detele(List<UserDeleteParam> userDeleteParamList);

    void edit(UserEditParam userEditParam);
    Page<User> page(UserPageParam userPageParam);

    List<User>like(UserLikeParam userLikeParam);

    /**
     * 获取用户信息
     *
     */
    User detailOne();

    List<Food> favoriteList();

    /**
     * 找回密码
     */
    String resetPassWord(UserResetParam userResetParam);

    /**
     * 获取总用户数
     */
    Long amount();

    /**
     * 封禁用户
     */
    void banUser(Integer userId);

    /**
     * 解封用户
     */
    void unbanUser(Integer userId);
}
